package com.qf.advice;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class MyMethodInterceptor  implements MethodInterceptor {
    public Object invoke(MethodInvocation methodInvocation) throws Throwable {
        System.out.println("这是环绕通知->>>开始事务功能");
        Object proceed = methodInvocation.proceed();
        System.out.println("这是环绕通知->>>>结束，提交事务功能");

        return proceed;

    }
}
